package com.sun.service;

import com.sun.mapper.EmployeeMapper;
import com.sun.pojo.Employee;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author shkstart
 * @create 2021-08-11 21:19
 */
@Service
public class EmployeeService {
    @Autowired
    private EmployeeMapper employeeMapper;
    public List<Employee> getAll(){
        return  employeeMapper.selectAll();
    }

    public void updatebatchEmp(List<Employee> list){
        employeeMapper.batchUpdateMapper(list);
    }
}
